﻿/***********************************************************************
 *            Project: {{ProjectNameSpace}}
 *        ProjectName: {{ProjectName}}
 *             Author: CHENGWENJUN
 *              Email: kevin_cwj2008@qq.com
 *         CreateTime: {{ModelCreateTime}}
 *        Description: 暂无
 ***********************************************************************/
using Sckf.Core.Infrastructure;
using {{ProjectNameSpace}}.Infrastructure;
using System.Threading.Tasks;

namespace {{ProjectNameSpace}}.ManageApi
{
    /// <summary>
    /// {{ModelClassName}} 服务接口
    /// </summary>
    public interface I{{ModelClassName}}Service
    {
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="size">每页条数</param>
        /// <param name="keywords">关键词</param>
        /// <returns></returns>
        Task<PageResult<{{ModelClassName}}ListDto>> List(int page, int size, string keywords = null);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task Save({{ModelClassName}}Input input);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task Update({{ModelClassName}}Input input);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="input">ids</param>
        /// <returns></returns>
        Task DeleteMultiple(IdsInput<long> input);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="input">用户id</param>
        /// <returns></returns>
        Task Delete(IdInput<long> input);
    }
}
